package com.shop.order.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

import java.util.ArrayList;

@Configuration
public class Swagger3Config {
    @Bean
    public Docket docket(){
        return new Docket(DocumentationType.OAS_30).apiInfo(apiInfo());
    }

    @Bean
    public ApiInfo apiInfo(){
        return new ApiInfo(
                "Api Shop",
                ".....",
                "1.0",
                "铁锤帮开发小组",
                new Contact("qs","1","2831722816@qq.com"),
                "Apache 2.0",
                "https://gitee.com/sdsafsad/jx-shop",
                new ArrayList());
    }
}
